<#import "/spring.ftl" as spring/>
<#list users as user>
<tr>
<td><p style="width:50px">${(pageNo -1) * pageSize + user_index+1}</p></td>
<td><p style="width:95px">
 <#if user.uploadFile?exists&user.uploadFile!=''>  
	    <img src='${user.uploadFile!}'>
	<#else>  
	    <img src='/ls-erp/static/images/pic-none.jpg'>
	</#if>
</p></td>
<td><p style="width:110px">${user.materialCode!}<br>${user.materialNameCn!}</p></td>
<td><p style="width:35px">${user.materialSpec!}</p></td>
<td><p style="width:45px">${dict.getDictName(user.materialSpecUnitCd)}</p></td>
<td><p style="width:45px">${user.materialColor!}</p></td>
<td><p style="width:75px">${user.materialComposition!}</p></td>
<td><p style="width:75px">${dict.getDictName(user.materialTypeCd)}</p></td>
<td><p style="width:75px">${dict.getDictName(user.materialUseType)}</p></td>
<td><p style="width:75px">${user.materialQuantity!}</p></td>
<td><p style="width:75px">${user.materialAlertQuantity!}</p></td>
<td><p style="width:70px">${(user.createDateTime)?string("yyyy-MM-dd")}</p></td>
 <#if user.supplierNameCn?exists&user.supplierNameCn !='' >
<td><p class='linkBox' style="width:55px" onclick="toShowImage(${user_index})">${user.supplierNameCn!}</p></td>
<td><p style="width:70px">${user.purchaseReserveQuantity!}</p></td>
<td><p style="width:75px">${(user.updateDateTime)?string("yyyy-MM-dd")}</p></td>
<td><#if user.materialStatus=='INVENTORY_ALERT-IA_00' >
	<p class='linkBox' style="width:75px" onclick="deleteThis(${user.alertId!?c})">删除</p>
	<#else>
	<p style="width:75px"></p>
	</#if>
</td>
<#else>
<td><p class='linkBox' style="width:55px" onclick="toShowImage(${user_index})"><@spring.message "style_selectOK" /></p></td>
<td><p style="width:70px"></p></td>
<td><p style="width:75px"></p></td>
<td><#if user.materialStatus=='INVENTORY_ALERT-IA_00' >
	<p class='linkBox' style="width:75px" onclick="deleteThis(${user.alertId!?c})">删除</p>
	<#else>
	<p style="width:75px"></p>
	</#if>
</td>
</#if>
<input class="alertId" type = "hidden" value="${user.alertId!?c}">
<input class="materialCode" type = "hidden" value="${user.materialCode!}">
<input class="materialNameCn" type = "hidden" value="${user.materialNameCn!}">
<input class="materialColor" type = "hidden" value="${user.materialColor!}">
<input class="materialComposition" type = "hidden" value="${user.materialComposition!}">
<input class="materialSpec" type = "hidden" value="${user.materialSpec!}">
<input class="materialQuantity" type = "hidden" value="<#if user.materialQuantity??>${user.materialQuantity?string("##########")}</#if>">
<input class="uploadFile" type = "hidden" value="${user.uploadFile!}">
<input class = "materialId" type = "hidden" value = "${(user.materialId!)?c}">
<input class = "ognizationId" type = "hidden" value = "${user.ognizationId!}">
<input class = "purchaseReserveQuantity" type = "hidden" value = "<#if user.purchaseReserveQuantity??>${user.purchaseReserveQuantity?string("##########")}</#if>">
<input class = "materialStatus" type = "hidden" value = "${user.materialStatus!}">
<input class = "purchaseUnitPrice" type = "hidden" value = "<#if user.purchaseUnitPrice??>${user.purchaseUnitPrice?string("###000.0##")}</#if>">
<input class = "purchaseTaxRebate" type = "hidden" value = "<#if user.purchaseTaxRebate??>${user.purchaseTaxRebate?string("###000.0##")}</#if>">
</tr>
</#list>